package com.example.anliku.mapper;

import com.example.anliku.entity.Admin;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;

@Mapper
public interface AdminMapper {
    int deleteByPrimaryKey(String adminId);

    int insert(Admin record);

    int insertSelective(Admin record);

    Admin selectByPrimaryKey(String adminId);

    int updateByPrimaryKeySelective(Admin record);

    int updateByPrimaryKey(Admin record);

    Admin selectAllByAdminIdAndAdminPwd(@Param("adminId") String adminId, @Param("adminPwd") String adminPwd);

    int updateAdminPwdByAdminId(@Param("updatedAdminPwd") String updatedAdminPwd, @Param("adminId") String adminId,@Param("adminState") String adminState);

    List<Admin> selectAll();
}
